package com.fastCms.business.mall.pojo.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 杭州人参大健康管理有限公司 版权所有 Copyright 2019<br>
 *
 * @Description: 修改商品库存<br>
 * @Project: healthPro <br>
 * @CreateDate: Created in 2019年4月10日 上午11:01:24 <br>
 * @Author: < a href="jiahui.zhao@healthpro.vip">jiahui.zhao</ a>
 */
@ApiModel(value = "ProductStockPO对象", description = "修改商品库存")
@Data
public class ProductStockPO {

	@ApiModelProperty(value = "商品主键", example = "1")
	@NotBlank(message = "商品主键不能为空")
    private String productId;

    @ApiModelProperty(value = "商品库存", example = "9999")
    @Min(value = 0, message = "商品库存不能小于0")
    @Max(value = Integer.MAX_VALUE, message = "商品库存超过限制")
    @NotNull(message = "商品库存不能为空")
    private Integer stock;

	public ProductStockPO() {
		super();
	}

}
